<%@ page import="java.util.List" %>
<%@ page import="edu.nuist.studentadmin.model.Student" %>
<%@ page import="edu.nuist.studentadmin.dao.impl.StudentDaoImpl" %>
<%--
  Created by IntelliJ IDEA.
  User: 86182
  Date: 2021/12/28
  Time: 10:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生列表展示</title>
    <style>
        table{
            border: 1px solid black;
            border-collapse: collapse;
            margin: 0 auto;
        }
        tr{
            border: 1px solid black;
            border-collapse: collapse;
            margin: 0 auto;
        }
        td{
             border: 1px solid black;
             border-collapse: collapse;
             margin: 0 auto;
         }
    </style>
</head>
<body>
    <h2 align="center">信息管理与信息系统19级同学名单</h2>
    <table>
        <tr>
            <td>学号</td>
            <td>姓名</td>
            <td>班级</td>
            <td>性别</td>
            <td>电话</td>
            <td>系部</td>
            <td>宿舍</td>
            <td>照片</td>
        </tr>
        <%
            List<Student> students=new StudentDaoImpl().getAllStudents();
            for (Student s:students){
        %>
        <tr>
            <td><%=s.getStuno()%></td>
            <td><%=s.getStuname()%></td>
            <td><%=s.getClasses()%></td>
            <td><%=s.getGender()%></td>
            <td><%=s.getDepartment()%></td>
            <td><%=s.getTel()%></td>
            <td><%=s.getDormno()%></td>
            <td><%=s.getPhotopath()%></td>
        </tr>
        <%}%>
    </table>
</body>
</html>
